package cn.broadsense.biz.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 标签信息
 * @TableName t_tag_info
 */
@TableName(value ="t_tag_info")
@Data
public class TagInfo implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 标签名称
     */
    private String name;

    /**
     * 标签编码
     */
    private String code;

    /**
     * 父类ID
     */
    private Integer parentId;

    /**
     * 全路径ID
     */
    private String fullId;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    /**
     * 更新人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 标签类型
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Integer tagTypeId;

    /**
     * 标签规则ID
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Long tagRuleId;

    @TableField(exist = false)
    private String tagRuleName;

    @TableField(exist = false)
    private String tagTypeName;

    @TableField(exist = false)
    private String parentName;


}